package j15;

public class J15_Printer {

	public static void main(String[] args) {
	 Printer p01 = new Printer();
	 p01.print();
	 Printer p02 = new InkjerPrinter();
	 p02.print();
	 Printer p03 = new LaserPrinter();
	 p03.print();
	 
	} //main

} //class


class Printer{
	public String model;
	public String maker;
	public String type;
	public int paper;
	public int remains;
	
	public void print(){
		System.out.println("프린터 입니다");
	}
	
}

class InkjerPrinter extends Printer{
	public int inkRemains;
	
	@Override
	public void print() {
		// TODO Auto-generated method stub
		System.out.println("잉크젯프린터 입니다");
	}
	
}

class LaserPrinter extends Printer{
	public int tonerRemains;
	
	@Override
	public void print() {
		// TODO Auto-generated method stub
		System.out.println("레이저프린터 입니다");
	}
}
